widget: Make invisible widgets not propagate resizes
authorBenjamin Otte <otte@redhat.com>
Thu, 1 Oct 2015 20:38:31 +0000 (22:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 28 Oct 2015 18:44:29 +0000 (19:44 +0100)
Do not queue a resize on the parent if the widget is not visible.
Invisible widgets do not influence the parents size.

gtk/gtkwidget.c

index a1d5153cfd8affcdc48afd1851c02372e8cc24e3..12c15cba135f2cfa586bf582e07d9d6430a6444c 100644 (file)
@@ -5635,7 +5635,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
 G_GNUC_END_IGNORE_DEPRECATIONS;
     }
-  else
+  else if (_gtk_widget_get_visible (widget))
     {
       GtkWidget *parent = _gtk_widget_get_parent (widget);
       if (parent)